<div class="box">
    <div class="box-header">

        <h3 class="box-title"></h3>

        <div class="pull-right">
            {!! $grid->renderFilter() !!}
            {!! $grid->renderExportButton() !!}
            {!! $grid->renderCreateButton() !!}
            @foreach ($grid->rightLinks as $rightLink)
                <div class="btn-group pull-right" style="margin-right: 10px">
                    <a href="{{ $rightLink['link']  }}" class="{{ $rightLink['class']  }}">
                        @if ($rightLink['link'] !== false)
                            <i class="{{ $rightLink['icon']  }}"></i>
                        @endif
                        &nbsp;&nbsp;{{ $rightLink['label']  }}
                    </a>
                </div>
            @endforeach
            @foreach($grid->rightHtml as $html)
                {!! $html !!}
            @endforeach
        </div>

        <span>
            {!! $grid->renderHeaderTools() !!}
            @foreach ($grid->leftLinks as $leftLink)
                <a href="{{ $leftLink['link']  }}" class="{{ $leftLink['class']  }}">
                        @if ($leftLink['link'] !== false)
                        <i class="{{ $leftLink['icon']  }}"></i>
                    @endif
                    &nbsp;&nbsp;{{ $leftLink['label']  }}
                    </a>
            @endforeach
            @foreach($grid->leftHtml as $html)
                {{ $html }}
            @endforeach
        </span>

    </div>
    <!-- /.box-header -->
    <div class="box-body table-responsive no-padding">
        <table class="table table-hover">
            <tr>
                @foreach($grid->columns() as $column)
                    <th>{{$column->getLabel()}}{!! $column->sorter() !!}</th>
                @endforeach
            </tr>

            @foreach($grid->rows() as $row)
                <tr {!! $row->getHtmlAttributes() !!}>
                    @foreach($grid->columnNames as $name)
                        <td>{!! $row->column($name) !!}</td>
                    @endforeach
                </tr>
            @endforeach
        </table>
    </div>
    <div class="box-footer clearfix">
        {!! $grid->paginator() !!}
    </div>
    <!-- /.box-body -->
</div>
